package viewIHM;

import java.awt.event.ActionEvent;
import javax.swing.AbstractAction;

public class DisconnectAction extends AbstractAction {
	
	private static final long serialVersionUID = 1L;
	private ChatGUIView fenetre ;

	public DisconnectAction(ChatGUIView fenetre,String nomAction){
		super(nomAction);
		this.fenetre = fenetre ;
	}
	
	
	@Override
	public void actionPerformed(ActionEvent e) {
		// Devras appeler la methode du controller pour se co
		System.out.println("Deconnection");
		fenetre.disconnectChat();
	}
}
